# Contributor: Kay Thomas <kaythomas@pm.me>
# Maintainer: Kay Thomas <kaythomas@pm.me>
pkgname=s-tui
pkgver=1.1.3
pkgrel=2
pkgdesc="Terminal-based CPU stress and monitoring utility"
url="https://github.com/amanusk/s-tui"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="py3-setuptools"
depends="python3 py3-urwid py3-psutil stress-ng"
source="$pkgname-$pkgver.tar.gz::https://github.com/amanusk/s-tui/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir" python3 s_tui/tests/test_util_source.py
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
80a746187d7d4e4581b6a7c68c3939772eed95ae16530ca38692c9fcfdb98068e60fbe401cf741e1896d8a303a240b231c27a7bf5471c24357fe06df6fdfb153  s-tui-1.1.3.tar.gz
"
